package com.itcast.hotel.pojo;

import lombok.Data;
import org.elasticsearch.search.fetch.subphase.highlight.HighlightField;

import java.util.List;
import java.util.Map;

/**
 * @author 29143
 */
@Data
public class PageResult {

    private Long total;
    private List<HotelDoc> hotels;
    private Map<String , HighlightField> highlightFields;

    public PageResult(){
    }

    public PageResult(Long total,List<HotelDoc> hotelDocs){
        this.total=total;
        this.hotels=hotelDocs;
    }
}
